A widget for Vue InstantSearch that lets users enter a search query.
ais-search-box
widget lets users perform a text-based query.
TThe search box is usually the main entry point to start the search on an InstantSearch page.
It’s usually placed at the top of a search experience, so users can start searching right away.
ais-configure
as a component or with a plugin.
ais-SearchBox
: the root element of the widget.ais-SearchBox-form
: the form element.ais-SearchBox-input
: the input element.ais-SearchBox-submit
: the submit button element.ais-SearchBox-submitIcon
: Magnifier icon used with the search input.ais-SearchBox-reset
: the reset button element.ais-SearchBox-resetIcon
: the reset button icon.ais-SearchBox-loadingIndicator
: the loading indicator element.ais-SearchBox-loadingIcon
: the loading indicator icon.default
slot to override the DOM output.
When you implement this slot, none of the other slots will change the output, as the default slot surrounds them.currentRefinement: string
: the current query used for the search.isSearchStalled: boolean
: whether InstantSearch has detected that searches are stalled.refine: (string) => void
: the function to change the query.